package lvyou

func Lvyou(xiaofei float32, shijian int) (zongxiaofei float32, kaixin bool) {
	if xiaofei < 200 {
		if shijian < 3 {
			zongxiaofei = xiaofei * float32(shijian)
			return zongxiaofei, true

		} else {
			zongxiaofei = xiaofei * float32(shijian)
			return zongxiaofei, false
		}
	}
	if xiaofei < 500 {

		if shijian < 4 {
			zongxiaofei = xiaofei * float32(shijian)
			return zongxiaofei, true
		} else {
			zongxiaofei = xiaofei * float32(shijian)
			return zongxiaofei, false
		}
	}
	if xiaofei >= 500 {
		zongxiaofei = xiaofei * float32(shijian)
		return zongxiaofei, false
	}

	return zongxiaofei, true
}
